package com.peas.platform.module.icims.base.auth.controller.vo;

import java.util.*;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("用户功能收藏")
public class UserFavoriteVo extends BaseVo {

    // （用户表）外键
    @Comment(value = "用户表ID")
    @ApiModelProperty(value = "用户表ID")
    @NotNull(message = "用户表ID不能为空")
    private Long userId;

    @Comment(value = "标题")
    @ApiModelProperty(value = "标题")
    @Size(max = 100, message = "标题不能超过100个字符")
    private String title;

    @Comment(value = "图标")
    @ApiModelProperty(value = "图标")
    @Size(max = 100, message = "图标不能超过100个字符")
    private String icon;

    @Comment(value = "名称")
    @ApiModelProperty(value = "名称")
    @Size(max = 100, message = "名称不能超过100个字符")
    private String name;

    @Comment(value = "路径")
    @ApiModelProperty(value = "路径")
    @Size(max = 100, message = "路径不能超过100个字符")
    private String path;

    // （权限表）外键
    @Comment(value = "权限表ID")
    @ApiModelProperty(value = "权限表ID")
    private Long permissionId;

    @Comment(value = "收藏时间")
    @ApiModelProperty(value = "收藏时间")
    private Date favoriteTime;

    @Comment(value = "收藏IP")
    @ApiModelProperty(value = "收藏IP")
    @Size(max = 15, message = "收藏IP不能超过15个字符")
    private String favoriteIp;

}
